package chain_config

import (
	"chain_bridge_service/internal/pkg/core"
	"chain_bridge_service/internal/repository/mongodb/chain_config"
)

func (s *service) List(ctx core.Context) ([]chain_config.ChainConfig, error) {
	models := chain_config.NewModel()
	list, err := models.List(s.db.GetDb())
	return list, err
}
